let year_detil = document.getElementById('year_detil');
let month_detil = document.getElementById('month_detil');
let day_detil = document.getElementById('day_detil');

year_detil.onclick = function(){
    layer.open({
        title: '年统计(各月份占比细节)',
        area:['680px','380px'],
        content: '<div id="chart_year2" class="chart"></div><script>ChartYearDetail()</script>'
      }); 
};
month_detil.onclick = function(){
    layer.open({
        title: '月统计(各日期占比细节)',
        area:['880px','520px'],
        content: '<div id="chart_month2" class="ChartDetail"></div><script>ChartMonthDetil()</script>'
    });
};
day_detil.onclick = function(){
    layer.open({
        title: '月统计(各日期占比细节)',
        area:['880px','520px'],
        content: '<div id="chart_day2" class="chart"></div><script>ChartDayDetil()</script>'
    });
};